package com.wu.springbootmqproducer.coontroller;


import com.wu.springbootmqproducer.beans.Goods;
import com.wu.springbootmqproducer.serice.SendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pro")
public class ProducerController {
    @Autowired
    private SendService sendService;

    @RequestMapping("/send")
    public String sendMsg(Goods good){
       return sendService.send(good);
    }
}
